<!--{eval $_TPL['titles'] = array('作品展示');}-->
<!--{template header_tpl}-->
<div class="grid_16 main_box">
		<!--{if $work}-->
			<div class="grid_16 workbox">
				<h1 class="title">{$work[title]}</h1>
				<div class="grid_16 desc">
					设计说明：{$work[description]}
				</div>
				<div class="grid_16 copyright">
					版权信息： <a href="{SITEURL}home/index/{$work[uid]}">{$work[name]}</a>版权所有，禁止任何用途（禁止转载、商用和个人使用） 
				</div>
				
				<div class="grid_16">
					<img class="work" src="{$work[bigimg]}"/>
					<!--{if $workpic}-->
						<!--{loop $workpic $value}-->
						<img class="work" src="{$value[bigimg]}"/>
						<!--{/loop}-->
					<!--{/if}-->
				</div>
				<div class="grid_16 toolbar">

					<div class="grid_9">
					状态({$work[workstatus]}) 
					<!--{if $self}-->
						><a href="{SITEURL}work/edit/{$work[wid]}">修改</a> > <a href="{SITEURL}work/remove/{$work[wid]}" onclick="return confirm('本操作不可恢复，确认删除？');">删除</a> 
					<!--{/if}-->
					</div>
					

					<div class="grid_2 workcountnum">
						<a href="javascript:void(0);" onclick="islike({$work[wid]});" title="点击喜欢">
							<img src="<!--{if !$islike}--> {SITEURL}resources/images/likeoff.gif<!--{else}-->{SITEURL}resources/images/likeon.gif<!--{/if}-->" id="like_icon_{$work[wid]}">
							<span id="likenum_{$work[wid]}">{$work[likenum]}</span>喜欢</a>
					</div>
					
					<div class="grid_2 workcountnum">
						<a href="javascript:void(0);" onclick="toggleComment({$work[wid]}, 'workid');">
							<img src="{SITEURL}resources/images/comment.gif" title="评论数"/>
							<span>{$work[replynum]}</span>评论
						</a>
					</div>
					

					
					<div class="grid_2 workcountnum">
							<img src="{SITEURL}resources/images/viewcount.gif" title="浏览数"/>
							<span>{$work[viewnum]}</span>
					</div>
					<!--key-->
					<input type="hidden" id="work_key_{$work[wid]}" value="$work['key']">

					<div class="clear"></div>
				</div>
				
				<div class="grid_16 share">
					<a class= "shareButton" href="javascript:void(0)" onclick="shareTo('sina','{SITEURL}work/index/$work[wid]','{$work[title]}-$site_config[sitename]', '{$work[bigimg]}');return false;" title="转播到新浪微博">
						
						<img src="{SITEURL}resources/images/sharetosina.png" align="absmiddle" border="0" alt="转播到新浪微博">
					</a>
					<a class= "shareButton" href="javascript:void(0)" onclick="shareTo('qzone','{SITEURL}work/index/$work[wid]','{$work[title]}-$site_config[sitename]', '{$work[bigimg]}');return false;" title="转播到QQ空间">
						<img src="{SITEURL}resources/images/sharetoqzone.png" align="absmiddle" border="0" alt="转播到QQ空间">
					</a>
					
					<a class= "shareButton" href="javascript:void(0)" onclick="shareTo('qq','{SITEURL}work/index/$work[wid]','{$work[title]}-$site_config[sitename]', '{$work[bigimg]}');return false;" title="转播到腾讯微博">
						<img src="{SITEURL}resources/images/sharetoqqweibo.png" align="absmiddle" border="0" alt="转播到腾讯微博">
					</a>
					
					<a class= "shareButton" href="javascript:void(0)" onclick="shareTo('kaixin001','{SITEURL}work/index/$work[wid]','{$work[title]}-$site_config[sitename]', '{$work[bigimg]}');return false;" title="转播到开心网">
						<img src="{SITEURL}resources/images/sharetokaixin.gif" align="absmiddle" border="0" alt="转播到开心网">
					</a>
				</div>
				
				<div class="grid_16 desc tag">
					<!--{if $work[tags]}-->
						&nbsp; <a href="{SITEURL}search/index/?searchkey=&searchtype=worktag&searchsubmit=yes">标签</a>:&nbsp;
						<!--{loop $work[tags] $tagid $tagname}-->
							<a href="{SITEURL}search/index/?searchkey={$tagid}&searchtype=tagid&searchsubmit=yes">{$tagname}</a>&nbsp;
						<!--{/loop}-->
					<!--{/if}-->
				</div>
				<!--评论框-->
				<div id="comment_workid_{$work[wid]}" class="grid_15 fcomment"></div>
				
			</div>
		<!--{else}-->
			<div class="grid_16 box">
				<h1>错误</h1>
			</div>
		<!--{/if}-->

</div>
<script type="text/javascript">
	$(document).ready(function() {
		getComment({$work[wid]}, 'workid');
	});a
</script>
<div class="grid_7 omega sidebar">
	<div class="shopinfo itembox">
		<!--{if $work[shopurl]}-->
			<p>
				价格：{$work[price]}元
			</p>
		
			<p>
				售出：{$work[soldoutnum]}件
			</p>
			<p>
				剩余：{$work[reserve]}件
			</p>
			<p class="gobuy">
				<a href="{$work[shopurl]}" target="_blank" >现在购买</a>
			</p>
		<!--{/if}-->
	</div>
	<div class="grid_7">
		<!--{template userhead_tpl}-->
	</div>
</div>
<!--{template footer_tpl}-->